﻿using Lidgren.Network;
using Model.LiveControl;

namespace Network.Messages.LiveControl.C2S
{
    public enum WindowShowType
    {
        Max,
        Nomal,
        Top,
    }
    public class C2SChangeWindowStatusMessage : NovaMessage
    {

        public C2SChangeWindowStatusMessage() : base((ushort)CustomMessageType.C2SChangeWindowStatusMessage)
        {
        }

        public WindowShowType Status;
        public int Ptr;
        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            message.Write((int)Status);
            message.Write(Ptr);
        }
        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            Status = (WindowShowType) message.ReadInt32();
            Ptr = message.ReadInt32();
        }
    }
}
